package com.ruoyi.DataManage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考试科目管理对象 examination_course
 * 
 * @author CehnFneg
 * @date 2024-04-23
 */
public class ExaminationCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考试科目表的id */
    private Long id;

    /** 考试科目名称 */
    @Excel(name = "考试科目名称")
    private String name;

    /** 
考试科目满分 */
    @Excel(name = "考试科目满分")
    private Long score;

    /** 考试时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考试时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 表示科目类型，0表示通识科目(如数学、政治、英语),1表示专业科目 */
    @Excel(name = "表示科目类型，0表示通识科目(如数学、政治、英语),1表示专业科目")
    private Long type;

    /** 学校id，若type为0即为通识科目时，该字段为0，否则为学校表id */
    @Excel(name = "学校id，若type为0即为通识科目时，该字段为0，否则为学校表id")
    private Long universityId;

    /** 专业id，当type为0时，该字段为0，否则为当前考试科目的对应专业id，在subject_tree表中对应type为1 */
    @Excel(name = "专业id，当type为0时，该字段为0，否则为当前考试科目的对应专业id，在subject_tree表中对应type为1")
    private Long majorId;

    /**
     * 专业名称
     */
    @Excel(name = "专业名称")
    private String majorName;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    private String universityName;

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public String getUniversityName() {
        return universityName;
    }

    public void setUniversityName(String universityName) {
        this.universityName = universityName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setUniversityId(Long universityId) 
    {
        this.universityId = universityId;
    }

    public Long getUniversityId() 
    {
        return universityId;
    }
    public void setMajorId(Long majorId) 
    {
        this.majorId = majorId;
    }

    public Long getMajorId() 
    {
        return majorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("score", getScore())
            .append("time", getTime())
            .append("type", getType())
            .append("universityId", getUniversityId())
            .append("majorId", getMajorId())
            .toString();
    }
}
